package com.aaa.dao;

import org.apache.ibatis.annotations.Select;

import java.util.List;
import java.util.Map;

/**
 * @Author: TT
 * @Date: 2019/3/30 9:40
 * @Version 1.0
 */
public interface T_ShidiDao {
    @Select(" <script> SELECT name,SHtime,inscore  from regist  where 1=1  <if test=\"name!=null and name!=''\"> and name like concat('%',#{name},'%')</if> and state=1 limit #{start},#{pageSize} </script>")
    List<Map> selectAll(Map map);
    @Select("<script> select count(name) from regist where 1=1            <if test=\"name!=null and name!=''\">  and name like concat('%',#{name},'%')</if> </script> ")
    Integer  getCount(Map map);
}
